﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ph_Order.aspx.cs" Inherits="Dryricenet.ph_Order" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="CSS/order.css" rel="stylesheet" />
    <style>
        #heading1 {
            width:100%;
             margin: 40px 3px auto;
    text-align: center;
        }
        body {
            color:#f4f4f4;
        }
        .hs {
            background:#fec700;
        }
        .xlk {
            width: 100px;
            height: 20px;
            text-align: center;
        }
        .heading1_ss {
            margin-top:10px;
        }
        .kuang {
             width:340px;
            color: #000;
            background: none;
            padding: 8px 10px;
            outline: none;
            border: 1px solid #c4c6cf;
            border-radius:4px;
            font-family: 'Lato-Regular';
            font-size: 14px;
            margin-top:10px;
            margin-left: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
            background:#ffffff;
        }
        .anniu {
            width:60px;
            height:30px;
            border-radius:6px;
            color:#ffffff;
            background: #1ab394;
            border-color: transparent;
            border-style: solid;
           
        }
            .anniu:hover {
                background: #18a689;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="heading1">
             <span style="color:#000000">查找类别：</span>
            <asp:DropDownList ID="drp" runat="server" CssClass="xlk">
                        <asp:ListItem>全部</asp:ListItem>
                        <asp:ListItem>订单号</asp:ListItem>
                        <asp:ListItem>姓名</asp:ListItem>
                        <asp:ListItem>电话</asp:ListItem>
                        <asp:ListItem>是否支付</asp:ListItem>
                        <asp:ListItem>是否发货</asp:ListItem>
                        <asp:ListItem>是否收货</asp:ListItem>
                    </asp:DropDownList>
                        <asp:TextBox ID="TextBox1" runat="server" CssClass="kuang"></asp:TextBox>
                        &nbsp;<asp:Button ID="Search" runat="server" OnClick="Search_Click" Text="查找" CssClass="anniu" />
               
        <div class="heading1_ss">
                    
            <div class="heading_neir">
               
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="未查询到数据" Font-Size="13px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" ForeColor="#333333" CellPadding="4" GridLines="None">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="OrderID" HeaderText="订单ID" Visible="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Ordertitle" HeaderText="订单号">
                            <HeaderStyle Height="40px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Height="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OrderName" HeaderText="姓名">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Phone" HeaderText="电话">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Pay" HeaderText="订单金额">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Zf" HeaderText="是否支付">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Fh" HeaderText="是否发货">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Sh" HeaderText="是否收货">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PayName" HeaderText="支付方式">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Address" HeaderText="订单地址">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="216px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Logistics" HeaderText="物流信息">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Note" HeaderText="备注">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Time" HeaderText="时间">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('确定要删除？')" OnClick="LinkButton1_Click" CssClass='<%#DataBinder.Eval(Container.DataItem,"OrderID") %>'>删除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle CssClass="sh" BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
